import { IRootState } from './index';
import { GetterTree } from 'vuex';

// 定义全局getters
const getters: GetterTree<IRootState, IRootState> = {
  sidebar: (state) => state.app.sidebar,
  size: state => state.app.size,
  themeColor: state => state.settings.theme
};

export default getters;
